<admintpl file="header" />
</head>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('commentadmin/index')}">汇友圈管理</a></li>
		</ul>
            <form class="well form-search" method="get" >
                <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="FriendCircle" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="type" value="{$search.type}" />
			昵称： 
			<input type="text" name="author" style="width: 200px;" value="{$search.author}" placeholder="请输入昵称..."> &nbsp;&nbsp;
			时间：
			<input type="text" name="stime" class="js-datetime" value="{$search.stime}" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime" name="etime" value="{$search.etime}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
			
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('FriendCircle/index',array('live_id'=>$live_id))}">清空</a>
		</form>
		<form class="js-ajax-form" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th width="100">昵称</th>
						<th width="150">发布时间</th>
						<th>视频/图片地址</th>
						<th width="120">描述信息</th>
						<th width="50">点赞数量</th>
						<th width="80">评论数量</th>
                                                <th width="80">管理操作</th>
					</tr>
				</thead>
				<php>$status=array("1"=>L('AUDITED'),"0"=>L('NOT_AUDITED'));</php>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.tid}</td>
					<td>{$vo.author}</td>
					<td>{$vo.dateline|date='Y-m-d H:i:s',###}</td>
					<td><a class="" href="{$vo.url}">{$vo.url}</a></td>
					<td>{$vo.subject}</td>
					<td>{$vo.recommends}</td>
                                        <td><a class="" href="{:U('FriendComment/index',array('tid'=>$vo['tid']))}">{$vo.replies}</a></td>
					<td>
						
						<a href="{:U('FriendCircle/delete',array('tid'=>$vo['tid']))}" class="js-ajax-delete">删除</a>
                                                <a target="_blank" onclick="edit({$vo.tid})">修改描述信息</a> 
					</td>
				</tr>
				</foreach>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
        <script>
	function edit(id){
			var dialog = art.dialog({
			title: '修改描述信息', content: '<table><tbody style=""><tr><td><textarea name="data" id="subject" style="width: 98%; height: 50px;" placeholder="请填写描述信息"></textarea></td></tr></tbody></table>',
			follow: document.getElementById('btn2'),
			ok: function(){
                            var url = '{:U('FriendCircle/edit')}';
                            $.post(url, {'tid': id,'subject':$("#subject").val()}, function (json)
                            {
                                if(json.state === 'success'){
                                            reloadPage(window);
                                            return false;
                                }
                                alert(json.info)
                                art.dialog.close();
                            });
                            return false;
                        }
                        });
	}
</script>
</body>
</html>